Repository navigation
fix: normalize localhost bind host; simplify codex web card to url-only - #175
Merged
Merged
Conversation
Merged
This was referenced Aug 31, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Field report in #2 (two parts):
1.
http://127.0.0.1:8787unreachable whilehttp://localhost:8787works.bili-side defensive fix: if the listen host is set to
localhost(via--host,ACP_HOST, or config file), Node may resolve it to::1and bind IPv6-only — thenlocalhost(client tries ::1) works while127.0.0.1(IPv4) is refused.loadOptionsnow normalizeslocalhost→127.0.0.1(src/config.ts). Other causes live outside bili and are now documented on the web card: HTTP(S)_PROXY without NO_PROXY, or bili inside WSL2/Docker (Windows forwardslocalhostinto WSL2 but not127.0.0.1).2. Web config "Codex(ChatGPT 登录)" card required two lines; url alone should suffice.
codex's default model provider is already
openai, somodel_provider = "openai"is redundant. Copy-snippet and 配置 row now show onlyopenai_base_url = "…/bili/https://chatgpt.com/backend-api/codex", with a 说明 row covering: add model_provider back if it was customized; NO_PROXY hint; WSL2 hint.Tests: loadOptions host normalization (localhost→127.0.0.1, explicit hosts pass through). Pre-flight: typecheck ✓, 454/454 ✓, build ✓. cc #2